function doOpStatusAccepted(id, type) {
    layer.confirm("确定" + (type == 1 ? "接受" : "拒绝") + "此咨询订单么？", function (index) {
        $.ajax({
            type: "post",
            dataType: "json",
            url: doOpStatusAcceptedUrl,
            data: {
                order_hotel_id: id
                , status_accepted: type
            },
            success: function (data) {
                if (data.flag == 1) {
                    dialog.msg(data.msg);
                    window.location.reload();
                } else {
                    dialog.alert(data.msg);
                }
            }
        });
        layer.close(index);
    });
}

/*
 * 修改房型
 */
function editFangxing(id) {
    dialog.iframeOpen(editFangxingUrl + "&order_hotel_id=" + id, "修改订单房型价格", 700, 600);
}